/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ucmconfchecker.pUCM;

import ucmconfchecker.pArchitecture.Responsibility;

/**
 *
 * @author Administrador
 */
public class UCMResponsibility extends UCMNode{
    private ComponentInstance instance;
    private Responsibility responsibility;

    public UCMResponsibility(ComponentInstance instance,Responsibility responsibility) {
        this.instance=instance;
        this.responsibility = responsibility;
        setType(Type.RESPONSIBILITY);
    }
    @Override
    public String toString(){
        return ""+getResponsibility()+"("+id+")";
    }

    public ComponentInstance getInstance() {
        return instance;
    }

    public Responsibility getResponsibility() {
        return responsibility;
    }
    
}
